.modal {
  display: none; /* 默认隐藏 */
  position: fixed; /* 防止在滚动时弹窗跑偏 */
  z-index: 1; /* 设置弹窗层级 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* 防止内容溢出弹窗 */
  background-color: transparent; /* 设置遮罩层颜色和透明度 */
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  color: red;
  cursor: move; /* 添加移动游标 */
}

.close {
  color: red;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

